package chixing.day04;

public class AccountTest {
    public static void main(String[] args) {
        Account account1 = new Account();
        account1.setAccNo("1001");
        account1.setAccName("张三");
        account1.setAccPassword("123456");
        account1.setAccTelno("13888888888");
        account1.setAccBalance(1000);
        account1.setaccType(0);
        Account account2 = new Account();
        account2.setAccNo("1002");
        account2.setAccName("李四");
        account2.setAccPassword("123456");
        account2.setAccTelno("13999999999");
        account2.setAccBalance(2000);
        account2.setaccType(1);
        String string1 = account1.toString();
        String string2 = account2.toString();
        System.out.println(string1);
        System.out.println(string2);
        account1.setAccTelno("1833893849");
        account2.deposit(account2, 1000);
        account2.withdraw(account2, 500);
        System.out.println(account2.getAccBalance());
    }
}
